package com.xuecheng.content.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xuecheng.api.content.model.TeachplanDTO;
import com.xuecheng.content.entity.Teachplan;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author by it-song
 * @Date 2021/12/11
 * @Description
 */
public interface TeachplanService extends IService<Teachplan> {
    /**
     * 查询课程计划树形结构
     * @param courseId Long 课程基础的ID信息
     * @param companyId Long 教学机构ID
     * @return TeachplanDTO
     */
    TeachplanDTO queryTreeNodesByCourseId(@PathVariable Long courseId,Long companyId);

    TeachplanDTO createOrModifyTeachPlan(TeachplanDTO dto, Long companyId);

    void removeTeachPlan(Long teachPlanId, Long companyId);
}
